package com.foreknow.demo7;

public class Student {
    private String name;
    public static int count;



    //静态方法
    public static void m1() {
        System.out.println("m1......");
    }

    public static void main(String[] args) {
        Student s1 = new Student();
        s1.name = "张三";
        s1.count = 1;
//        s1.m1();
        Student s2 = new Student();
//        s2.m1();
        s2.name = "李四";
        s2.count = 100;

        System.out.println(s1.name);
        s1.m1();
        System.out.println(s1.count);
        System.out.println("------------------------");
        System.out.println(s2.name);
        s2.m1();
        System.out.println(s2.count);
    }
}
